﻿using System;
using System.Xml.Serialization;
using System.Collections.Generic;
using Newtonsoft.Json;

namespace Smugmug
{
    [JsonObject]
    public class Category : IIdentifiable<int>
    {
        [XmlAttribute("id"), JsonProperty("id")]
        public int Id { get; set; }
        [XmlAttribute]
        public string Name { get; set; }
    }

    [XmlType("Categories"), JsonObject]
    public class CategoryCollection : List<Category>
    {
    }
}